Upgrade moment from 2.19.3 to 2.24.0
[lhc/web/wiklou.git] / resources / lib / moment / locale / ku.js
1 //! moment.js locale configuration
2
3 ;(function (global, factory) {
4 typeof exports === 'object' && typeof module !== 'undefined'
5 && typeof require === 'function' ? factory(require('../moment')) :
6 typeof define === 'function' && define.amd ? define(['../moment'], factory) :
7 factory(global.moment)
8 }(this, (function (moment) { 'use strict';
9
10
11 var symbolMap = {
12 '1': '١',
13 '2': '٢',
14 '3': '٣',
15 '4': '٤',
16 '5': '٥',
17 '6': '٦',
18 '7': '٧',
19 '8': '٨',
20 '9': '٩',
21 '0': '٠'
22 }, numberMap = {
23 '١': '1',
24 '٢': '2',
25 '٣': '3',
26 '٤': '4',
27 '٥': '5',
28 '٦': '6',
29 '٧': '7',
30 '٨': '8',
31 '٩': '9',
32 '٠': '0'
33 },
34 months = [
35 'کانونی دووەم',
36 'شوبات',
37 'ئازار',
38 'نیسان',
39 'ئایار',
40 'حوزەیران',
41 'تەمموز',
42 'ئاب',
43 'ئەیلوول',
44 'تشرینی یەكەم',
45 'تشرینی دووەم',
46 'كانونی یەکەم'
47 ];
48
49
50 var ku = moment.defineLocale('ku', {
51 months : months,
52 monthsShort : months,
53 weekdays : 'یه‌كشه‌ممه‌_دووشه‌ممه‌_سێشه‌ممه‌_چوارشه‌ممه‌_پێنجشه‌ممه‌_هه‌ینی_شه‌ممه‌'.split('_'),
54 weekdaysShort : 'یه‌كشه‌م_دووشه‌م_سێشه‌م_چوارشه‌م_پێنجشه‌م_هه‌ینی_شه‌ممه‌'.split('_'),
55 weekdaysMin : 'ی_د_س_چ_پ_ه_ش'.split('_'),
56 weekdaysParseExact : true,
57 longDateFormat : {
58 LT : 'HH:mm',
59 LTS : 'HH:mm:ss',
60 L : 'DD/MM/YYYY',
61 LL : 'D MMMM YYYY',
62 LLL : 'D MMMM YYYY HH:mm',
63 LLLL : 'dddd, D MMMM YYYY HH:mm'
64 },
65 meridiemParse: /ئێواره‌|به‌یانی/,
66 isPM: function (input) {
67 return /ئێواره‌/.test(input);
68 },
69 meridiem : function (hour, minute, isLower) {
70 if (hour < 12) {
71 return 'به‌یانی';
72 } else {
73 return 'ئێواره‌';
74 }
75 },
76 calendar : {
77 sameDay : '[ئه‌مرۆ كاتژمێر] LT',
78 nextDay : '[به‌یانی كاتژمێر] LT',
79 nextWeek : 'dddd [كاتژمێر] LT',
80 lastDay : '[دوێنێ كاتژمێر] LT',
81 lastWeek : 'dddd [كاتژمێر] LT',
82 sameElse : 'L'
83 },
84 relativeTime : {
85 future : 'له‌ %s',
86 past : '%s',
87 s : 'چه‌ند چركه‌یه‌ك',
88 ss : 'چركه‌ %d',
89 m : 'یه‌ك خوله‌ك',
90 mm : '%d خوله‌ك',
91 h : 'یه‌ك كاتژمێر',
92 hh : '%d كاتژمێر',
93 d : 'یه‌ك ڕۆژ',
94 dd : '%d ڕۆژ',
95 M : 'یه‌ك مانگ',
96 MM : '%d مانگ',
97 y : 'یه‌ك ساڵ',
98 yy : '%d ساڵ'
99 },
100 preparse: function (string) {
101 return string.replace(/[١٢٣٤٥٦٧٨٩٠]/g, function (match) {
102 return numberMap[match];
103 }).replace(/،/g, ',');
104 },
105 postformat: function (string) {
106 return string.replace(/\d/g, function (match) {
107 return symbolMap[match];
108 }).replace(/,/g, '،');
109 },
110 week : {
111 dow : 6, // Saturday is the first day of the week.
112 doy : 12 // The week that contains Jan 12th is the first week of the year.
113 }
114 });
115
116 return ku;
117
118 })));